home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_11_01
/
1101108a
< prev
next >
Wrap
Text File
|
1992-11-01
|
408b
|
26 lines
#include <stdarg.h>
char *PrintString(const char *fmt, ...)
/* Convert printf() arguments into a static string. */
{
va_list args;
static char line[999];
va_start(args, fmt);
vsprintf(line, fmt, args);
va_end(args);
return line;
}
void Msg(const char *fmt, ...)
/* Send message to stdout user. */
{
char *line;
line = PrintString(fmt);
print("%s\n", line);
...
}